import request from '@/utils/request'

// 查询流程和拨款绑定列表
export function listAllotbind(query) {
  return request({
    url: '/Allot/Allotbind/list',
    method: 'get',
    params: query
  })
}

// 查询流程和拨款绑定详细
export function getAllotbind(id) {
  return request({
    url: '/Allot/Allotbind/' + id,
    method: 'get'
  })
}

// 新增流程和拨款绑定
export function addAllotbind(data) {
  return request({
    url: '/Allot/Allotbind',
    method: 'post',
    data: data
  })
}

// 新增流程和拨款绑定
export function addAllotbindbylist(data) {
  return request({
    url: '/Allot/Allotbind/bylist',
    method: 'post',
    data: data
  })
}

// 修改流程和拨款绑定
export function updateAllotbind(data) {
  return request({
    url: '/Allot/Allotbind',
    method: 'put',
    data: data
  })
}

// 删除流程和拨款绑定
export function delAllotbind(id) {
  return request({
    url: '/Allot/Allotbind/' + id,
    method: 'delete'
  })
}
